<?php 
	$baseAsset = $this->baseUrl().'/public/assets';
?>

<html>
	<head>
	    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	    <title>Protox</title>
	    
	    <!-- Style Sheets -->
	    <?= $this->headLink()->appendStylesheet($baseAsset.'/css/admin_master.css') ."\n"; ?>
	    <?= $this->headLink()->appendStylesheet($baseAsset.'/css/admin_forms.css') ."\n"; ?>
	    <?= $this->headLink()->appendStylesheet($baseAsset.'/css/admin_messages.css') ."\n"; ?>
	    <?= $this->headLink()->appendStylesheet($baseAsset.'/css/admin_tabledatagrid.css') ."\n"; ?>
	    
	     <!-- Javascript -->
	     <?= $this->headScript()->appendFile($baseAsset.'/js/validate_form.js') ."\n"; ?>
		
		<!-- Dojo support -->
		<?php
		  if ($this->dojo()->isEnabled()){
			  $this->dojo()->setLocalPath($baseAsset.'/js/dojo/dojo/dojo.js')
			               ->setDjConfig(array(
			                 'parseOnLoad' => true,
			               	 'locale' => 'pt-br',
			                 'extraLocale' => array('pt-br', 'en-us')
			                 ))
			               ->addStyleSheetModule('dijit.themes.tundra');
			echo $this->dojo();
			}
		?>
		
		<!-- JQuery Support -->
		<?php
			if($this->jQuery()->isEnabled()) {
				$this->jQuery()->setLocalPath($baseAsset.'/js/jquery/jquery.js')
								->setUiLocalPath($baseAsset.'/js/jquery/jquery.ui.js')
								->addStylesheet($baseAsset.'/css/jquery/jquery.ui.css');
				echo $this->jQuery();
				
				echo $this->jQuery()->addJavascriptFile($baseAsset.'/js/jquery/jquery.tablesorter.js') ."\n";
			}
		?>		
		
	</head>

	<body class ="tundra">
		<div id="wrap">
			<div id="header">
				<?=$this->render('header.phtml') ?>
			</div>
			
			<div id="content">
				<?=$this->render('content.phtml') ?>
			</div>
			
			<div id="footer">
				<?=$this->render('footer.phtml') ?>
			</div>
		</div>
		
		<div id="footer-outside">
				<?=$this->render('footer_outside.phtml') ?>
		</div>
	
	</body>

</html>


